{*include file="template/admin_head.htm"*}

<table id="containtable" cellspacing="0" cellpadding="0" class="{*$cf_controller*}">
    <tr>
        <td width="1979" valign="top" bgcolor="#FFFFFF">


            <div class="wrapper pr_8">
                {*if $cf_action=='detail'*}

                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">挑战记录詳情</span>                            </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
                            <tbody>
                                <tr>
                                    <td width="15%" align="right">类型:</td>
                                    <td width="35%" align="left">{*assign var=type value=$row.sg_type *}{*$cf_info_var_common.sg_type.$type*}</td>
                                    <td width="17%" align="right">创建时间:</td>
                                    <td width="33%" align="left">{*$row.sg_begin*}</td>
                                </tr>
                                <tr>
                                	<td align="right">用户:</td>
                                	<td align="left">{*$row.sg_user*}</td>
                                	<td align="right">结束时间:</td>
                                	<td align="left">{*$row.sg_end*}</td>
                               	</tr>
                                <tr>
                                	<td align="right"><span class="thr">使用积分</span>:</td>
                                	<td align="left">{*$row.sg_cost*}</td>
                                	<td align="right">通过级别:</td>
                                	<td align="left">{*$row.sg_level*}</td>
                               	</tr>
                                <tr>
                                	<td align="right"><span class="thr">赢取积分</span>:</td>
                                	<td align="left">{*$row.sg_get*}</td>
                                	<td align="right">是否完成:</td>
                                	<td align="left">{*assign var=finish value=$row.sg_finish *}
                               		{*$cf_info_var_common.yesno.$finish*}</td>
                               	</tr>
                            </tbody>
                        </table>
                        <div class="pt_8" align="center">
                            <input type="button" name="back" value="返 回" onclick="window.history.back()" class="myinput" />
                        </div>
                    </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8"></div>
                </div>

                {*else*}

                <script type="text/javascript">
		
                    $(function(){
                        $("#search_form").submit(function(){
                            /*if($("#skey").val()=='' ){
                                my_alert('请输入掌友名称','操作提示',"$('#skey').focus()");
                                return false;
                            };*/
							
                        });

                    })

                </script>
                <div class="pannel">
                    <div class="pl"></div>
                    <div class="pr"></div>
                    <div class="pc1">
                        <form action="" method="post" id="search_form" name="search_form">
                            <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <div class="pt">称呼:
<input type="text" size="12" id="skey" name="skey" class="tet" value="{*$skey*}"/>
                                &nbsp;&nbsp;创建时间:                                
                                 <input name="skey2" class="Wdate" type="text" id="act_start" value="{*$skey2*}" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'act_end\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="13" maxlength="30" />
                              到<input name="skey3" class="Wdate" type="text" id="act_end" value="{*$skey3*}" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'act_start\')}',dateFmt:'yyyy-MM-dd',isShowClear:true,readOnly:true});" size="13" maxlength="30" />
                               <input type="image" src="public/images/admin/icon_search_btn.gif">
                          </div>
                        </form>
                    </div>
                </div>
                <div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">意见</span>
                      </div>
                    <div class="contentpanelrihgt"></div>
                </div>
                <div class="content_table_center_style">
                    <div class="p8">
                        <div class="bq clearfix">
                            <b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}" class="{*if $self==''*}active{*/if*}">所 有 </a></b>
			    {*foreach name=status_menu item=item key=key from=$cf_info_var.1*}
			    {*if $key==$self && $self!=''*}
			    {*assign var=class value='active' *}
			    {*else*}
			    {*assign var=class value='' *}
			    {*/if*}
			    <b><a href="{*$cf_self_path*}-act_index.htm?dpt={*$cf_dpt*}&self={*$key*}" class="{*$class*}" >{*$item*}</a></b>
			    {*/foreach*}
							</div>
                        <form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
                            <input name="act" type="hidden" value="all" />
                            <input name="dpt" type="hidden" value="{*$cf_dpt*}" />
                            <table width="100%" class="tbl tbl_nbr">
                                <thead>
                                    <tr class="thd">
                                      <td width="8%" align="center" class="thr">ID</td>
                                        <td width="44%" align="center" class="thr">留言内容</td>
                                        <td width="9%" align="center" class="thr">Email</td>
                                        <td width="11%" align="center" class="thr">称呼</td>
                                        <td width="10%" align="center" class="thr">提交IP</td>
                                        <td width="14%" align="center" class="thr">提交时间</td>
                                        <td width="4%" align="center" class="thr">操作</td>
                                    </tr>
                                </thead>
                                <tbody>
                                    {*foreach $data_ary as $item*}
                                   


                                    <tr onmouseout="this.style.backgroundColor='#ffF'" onmouseover="this.style.backgroundColor='#ffC'">
                                      	<td align="center">{*$item['sug_id']*}</td>
                                        <td align="left">{*$item['sug_content']*}</td>
                                        <td align="left">{*$item['sug_email']*}</td>
                                        <td align="center">{*$item['sug_name']*}</td>
                                        <td align="center">{*$item['sug_ip']*}</td>
                                        <td align="center">{*$item['sug_create_time']*}</td>
                                        <td align="center"><!--<a href="javascript:void(0)" title="查看詳情" onclick="$(function(){my_iframe('{*$cf_module_path*}detail-act_user.htm?id={*$item.sg_uid*}','查看用户詳情',700,500)})" class="edit" >查看</a>--></td>
                                    </tr>

                                    {*/foreach*}

                                    <tr class="tft">
                                        <td colspan="7" style="padding:0;">
                                            <table width="100%" border="0">
                                                <tr>
                                                    <td width="6%" align="center" style="border:0;padding:0;"><!--<input type="button" name="checkall" id="checkall" class="myinput" value="全 选" />--></td>
                                                    <td width="1%" align="center" style="border:0;padding:0;">
                                                       <!-- <select name="alltype" id="alltype">
                                                            <option selected="selected" value="">操作选择</option>
                                                        </select>
                                                        &nbsp;<input type="submit" name="submit_all" id="submit_all" value="批量操作" class="myinput" />--></td>
                                                    <td width="93%" style="border:0;padding:0;" ><div class="turnPage">
                                                      <p>{*$page*}</p></div></td>
                                                </tr>
                                            </table>                                </td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>

                {*/if*}
            </div>        </td>
    </tr>
</table>
{*include file="template/admin_foot.htm"*}